package com.atguigu.mybatis.entity;

import java.util.List;

/**
 * @author : zzf
 * @date : 2020/12/29
 */


public class Monkey {
    private Integer monkeyId;
    private String monkeyName;
    private List<Banana> bananaList;

    public Monkey() {
    }

    public Monkey(Integer monkeyId, String monkeyName) {
        this.monkeyId = monkeyId;
        this.monkeyName = monkeyName;
    }

    @Override
    public String toString() {
        return "Monkey{" +
                "monkeyId=" + monkeyId +
                ", monkeyName='" + monkeyName + '\'' +
                ", bananaList=" + bananaList +
                '}';
    }

    public Monkey(Integer monkeyId, String monkeyName, List<Banana> bananaList) {
        this.monkeyId = monkeyId;
        this.monkeyName = monkeyName;
        this.bananaList = bananaList;
    }

    public Integer getMonkeyId() {
        return monkeyId;
    }

    public void setMonkeyId(Integer monkeyId) {
        this.monkeyId = monkeyId;
    }

    public String getMonkeyName() {
        return monkeyName;
    }

    public void setMonkeyName(String monkeyName) {
        this.monkeyName = monkeyName;
    }

    public List<Banana> getBananaList() {
        return bananaList;
    }

    public void setBananaList(List<Banana> bananaList) {
        this.bananaList = bananaList;
    }
}
